<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>学生端学分管理系统</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 页面meta /-->
    <link rel="stylesheet" href="../../static/plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../static/plugins/adminLTE/css/AdminLTE.css">
    <link rel="stylesheet" href="../../static/plugins/adminLTE/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="../../static/css/style.css">


    <script src="../../static/plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script src="../../static/plugins/jQueryUI/jquery-ui.min.js"></script>
    <script src="../../static/plugins/bootstrap/js/bootstrap.min.js"></script>

    <script src="../../static/plugins/adminLTE/js/app.min.js"></script>



    <script type="text/javascript">
        function SetIFrameHeight(){
            var iframeid=document.getElementById("iframe"); //iframe id
            if (document.getElementById){
                iframeid.height =document.documentElement.clientHeight;
            }
        }

    </script>

    <script type="text/javascript" src="../../static/plugins/angularjs/angular.min.js"></script>

    <script type="text/javascript" src="../../static/js/base.js"></script>
    <script type="text/javascript" src="../../static/js/service/indexService.js"></script>
    <script type="text/javascript" src="../../static/js/controller/indexController.js"></script>

    <script th:src="@{../../static/js/service/indexService.js}"></script>
    <script th:src="@{../../static/js/controller/indexController.js}"></script>


</head>

<body class="hold-transition skin-yellow sidebar-mini" ng-app="credit" ng-controller="indexController" ng-init="showLoginName();showLoginmajor();messages()">

    <div class="wrapper">

        <!-- 页面头部 -->
        <header class="main-header">
            <!-- Logo -->
            <a href="index.html" class="logo">
                <!-- mini logo for sidebar mini 50x50 pixels -->
                <span class="logo-mini"><b>学分管理系统</b></span>
                <!-- logo for regular state and mobile devices -->
                <span class="logo-lg"><b>学生端学分管理系统</b></span>
            </a>
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top">
                <!-- Sidebar toggle button-->
                <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">Toggle navigation</span>
                </a>

                <div class="navbar-custom-menu">
                    <ul class="nav navbar-nav">
                        <!-- Messages: style can be found in dropdown.less-->
                        <li class="dropdown messages-menu" ng-if="messages!=null">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-envelope-o"></i>
                                <span class="label label-success">审核信息</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">您有以下消息需要查看</li>
                                <li>
                                    <!-- inner menu: contains the actual data -->
                                    <ul class="menu" ng-repeat="entity in messages">
                                        <li ng-if="entity.status==2">
                                            <!-- start message -->
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="../../static/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                                                </div>
                                                <h4>
                                                    {{entity.info}}
                                                    <small><i class="fa fa-clock-o"></i>未读</small>
                                                </h4>
                                                <p> {{entity.mes}}</p>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                                <li class="footer"><a href="/index" ng-click="updatestatus()">已阅</a></li>
                            </ul>
                        </li>
                        <!-- User Account: style can be found in dropdown.less -->
                        <li class="dropdown user user-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <img src="../../static/img/user2-160x160.jpg" class="user-image" alt="User Image">
                                <span class="hidden-xs">{{loginName}}</span>
                            </a>
                            <ul class="dropdown-menu">
                                <!-- User image -->
                                <li class="user-header">
                                    <img src="../../static/img/user2-160x160.jpg" class="img-circle" alt="User Image">

                                    <p>
                                       {{loginName}} 
                                        <small>{{loginmajor}}</small>
                                    </p>
                                </li>
                                
                                <!-- Menu Footer-->
                                <li class="user-footer">
                                    <div class="pull-left">
                                        <a href="#" class="btn btn-default btn-flat" ng-click="findOne()" data-toggle="modal" data-target="#editModal">修改信息</a>
                                    </div>
                                    <div class="pull-right">
                                        <a href="../logout" class="btn btn-default btn-flat">注销</a>
                                    </div>
                                </li>
                            </ul>
                        </li>

                    </ul>
                </div>
            </nav>
        </header>
        <!-- 页面头部 /-->

        <!-- 导航侧栏 -->
        <aside class="main-sidebar">
            <!-- sidebar: style can be found in sidebar.less -->
            <section class="sidebar">
                <!-- Sidebar user panel -->
                <div class="user-panel">
                    <div class="pull-left image">
                        <img src="../../static/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                    </div>
                    <div class="pull-left info">
                        <p> {{loginName}}</p>
                        <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
                    </div>
                </div>
                <ul class="sidebar-menu"  >
                    <li class="header">菜单</li>
                    <li id="admin-index"><a href="/index"><i class="fa fa-dashboard"></i> <span>首页</span></a></li>

				    <!-- 菜单 -->
				    <li class="treeview">
				        <a href="#">
				            <i class="fa fa-folder"></i> 
				            <span>所修学分</span>
				            <span class="pull-right-container">
				       			<i class="fa fa-angle-left pull-right"></i>
				   		 	</span>
				        </a>
				        <ul class="treeview-menu">
				            <li id="admin-login">
				                <a href="../../static/admin/AcitivityStu.html" target="iframe">
				                    <i class="fa fa-circle-o"></i> 参加活动学分
				                </a>
				            </li>
                            <li id="admin-login">
                                <a href="../../static/admin/AcitivityAward.html" target="iframe">
                                    <i class="fa fa-circle-o"></i> 活动获奖学分
                                </a>
                            </li>
				        </ul>
				    </li>
					<li class="treeview">
				        <a href="#">
				            <i class="fa fa-folder"></i> 
				            <span>线上报名</span>
				            <span class="pull-right-container">
				       			<i class="fa fa-angle-left pull-right"></i>
				   		 	</span>
				        </a>
				        <ul class="treeview-menu">
				
				            <li id="admin-login">
				                <a href="../../static/admin/AllAcitivity.html" target="iframe">
				                    <i class="fa fa-circle-o"></i> 报名活动
				                </a>
				            </li>
                            <li id="admin-login">
                                <a href="../../static/admin/department_2.html" target="iframe">
                                    <i class="fa fa-circle-o"></i> 加入部门
                                </a>
                            </li>
				        </ul>                        
				    </li>
                    
				    <!-- 菜单 /-->

                </ul>
            </section>
            <!-- /.sidebar -->
        </aside>
        <!-- 导航侧栏 /-->

        <!-- 内容区域 -->
        <div class="content-wrapper">
			<iframe width="100%" id="iframe" name="iframe"	onload="SetIFrameHeight()" 
					frameborder="0" src="../../static/admin/home.html"></iframe>
 
        </div>
        <!-- 内容区域 /-->

        <!-- 底部导航 -->
        <footer class="main-footer">
            <div class="pull-right hidden-xs">
                <b>Version</b> 1.0.8
            </div>
            <strong>Copyright &copy; 2014-2017 <a href="http://www.itcast.cn">研究院研发部</a>.</strong> All rights reserved.
        </footer>
        <!-- 底部导航 /-->

    </div>
    <!-- 编辑窗口 -->
    <div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog" >
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h3 id="myModalLabel">修改信息</h3>
                </div>
                <div class="modal-body">

                    <table class="table table-bordered table-striped"  width="800px">
                        <tr>
                            <td>学号</td>
                            <td><input  class="form-control" placeholder="登录名" ng-model="entity.stuid">  </td>
                        </tr>
                        
                        <tr>
                            <td>姓名</td>
                            <td><input  class="form-control" placeholder="新密码" ng-model="entity.stuname">  </td>
                        </tr>
                        <tr>
                            <td>密码</td>
                            <td><input  class="form-control" placeholder="负责人" ng-model="entity.password">  </td>
                        </tr>
                        <tr>
                            <td>班级</td>
                            <td><input  class="form-control" placeholder="所属部门" ng-model="entity.stuclass">  </td>
                        </tr>
                        <tr>
                            <td>年级</td>
                            <td><input  class="form-control" placeholder="部门人数" ng-model="entity.grade">  </td>
                        </tr>
                        <tr>
                            <td>专业</td>
                            <td><input  class="form-control" placeholder="负责人电话" ng-model="entity.major">  </td>
                        </tr>
                        <tr>
                            <td>辅导员</td>
                            <td><input  class="form-control" placeholder="负责人学号" ng-model="entity.teacher">  </td>
                        </tr>
                       

                    </table>

                </div>
                <div class="modal-footer">
                    <button class="btn btn-success" data-dismiss="modal" aria-hidden="true"  ng-click="save()">保存</button>
                    <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">关闭</button>
                </div>
            </div>
        </div>
    </div>

   
</body>

</html>